Skip to content

Support relative paths#405

Merged
ap-- merged 33 commits intofsspec:mainfrom
ap--:upath-relative-paths
Sep 28, 2025
Merged

Support relative paths#405
ap-- merged 33 commits intofsspec:mainfrom
ap--:upath-relative-paths

Conversation

@ap--
Copy link
Collaborator

@ap-- ap-- commented Sep 21, 2025

Replaces #215
Closes #214
Closes #184
Closes #170

WIP implementation of relative path handling.

TODO

  • If a UPath subclass does not implement .cwd() all file operations should be disabled for relative paths
  • Tests for all UPath attributes / methods for relative paths
  • Tests for joining between remote and local relative paths

@ap-- ap-- self-assigned this Sep 21, 2025
@ap-- ap-- mentioned this pull request Sep 23, 2025
17 tasks
@ap-- ap-- merged commit 00924c1 into fsspec:main Sep 28, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

relative_to doesn't work for FilePath S3Path Relative_to returns itself relative_to on GCSPaths does not return a relative path

1 participant